package com.wwj.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author wwj
 */
@Data
@TableName(value = "cmfz_menu")
public class CmfzMenu implements Serializable {

    public static final String COL_MENU_ID = "menu_id";
    public static final String COL_MENU_NAME = "menu_name";
    public static final String COL_MENU_URL = "menu_url";
    public static final String COL_MENU_PARENT_ID = "menu_parent_id";
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Integer menuId;
    @TableField(value = "menu_name")
    private String menuName;
    @TableField(value = "menu_url")
    private String menuUrl;
    @TableField(value = "menu_parent_id")
    private Integer menuParentId;
    @TableField(exist = false)
    private List<CmfzMenu> cmfzMenus;
}


